<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditPaisTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditPaisLabel_paiCd}" for="paiCd" />
                    <p:inputText id="paiCd" value="#{paisController.selected.paiCd}" title="#{bundle.EditPaisTitle_paiCd}" required="true" requiredMessage="#{bundle.EditPaisRequiredMessage_paiCd}"/>
                    <h:outputLabel value="#{bundle.EditPaisLabel_paiConCd}" for="paiConCd" />
                    <p:inputText id="paiConCd" value="#{paisController.selected.paiConCd}" title="#{bundle.EditPaisTitle_paiConCd}" required="true" requiredMessage="#{bundle.EditPaisRequiredMessage_paiConCd}"/>
                    <h:outputLabel value="#{bundle.EditPaisLabel_paiNm}" for="paiNm" />
                    <p:inputText id="paiNm" value="#{paisController.selected.paiNm}" title="#{bundle.EditPaisTitle_paiNm}" />
                    <h:outputLabel value="#{bundle.EditPaisLabel_paiSg}" for="paiSg" />
                    <p:inputText id="paiSg" value="#{paisController.selected.paiSg}" title="#{bundle.EditPaisTitle_paiSg}" />
                    <h:outputLabel value="#{bundle.EditPaisLabel_paiCdIso3166}" for="paiCdIso3166" />
                    <p:inputText id="paiCdIso3166" value="#{paisController.selected.paiCdIso3166}" title="#{bundle.EditPaisTitle_paiCdIso3166}" />
                    <h:outputLabel value="#{bundle.EditPaisLabel_paiArKm2}" for="paiArKm2" />
                    <p:inputText id="paiArKm2" value="#{paisController.selected.paiArKm2}" title="#{bundle.EditPaisTitle_paiArKm2}" />
                    <h:outputLabel value="#{bundle.EditPaisLabel_paiQtPopulacao}" for="paiQtPopulacao" />
                    <p:inputText id="paiQtPopulacao" value="#{paisController.selected.paiQtPopulacao}" title="#{bundle.EditPaisTitle_paiQtPopulacao}" />
                    <h:outputLabel value="#{bundle.EditPaisLabel_paiGmPoligono}" for="paiGmPoligono" />
                    <p:inputText id="paiGmPoligono" value="#{paisController.selected.paiGmPoligono}" title="#{bundle.EditPaisTitle_paiGmPoligono}" />
                </h:panelGrid>
                <h:commandLink action="#{paisController.update}" value="#{bundle.EditPaisSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditPaisViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{paisController.prepareList}" value="#{bundle.EditPaisShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditPaisIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
